FROM anapsix/alpine-java:8_server-jre_unlimited

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN mkdir -p /opt/projects/house_zzq

WORKDIR /opt/projects/house_zzq

EXPOSE 9002

COPY ./house_zzq/target/house_zzq-1.0-SNAPSHOT.war  ./

CMD java -jar  house_zzq-1.0-SNAPSHOT.war


#FROM tomcat:9.0
#
#COPY ./house_zzq/target/house_zzq-1.0-SNAPSHOT.war /usr/local/tomcat/webapps/
#COPY ./docker/sample.war /usr/local/tomcat/webapps/
#COPY ./docker/server.xml /usr/local/tomcat/conf/
#MAINTAINER opgames(opgames.cn@gmail.com)
# WORKDIR /usr/local/tomcat/webapps/
#RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
#
#RUN mkdir -p /opt/projects/house-project
#
#WORKDIR /opt/projects/house-project
#
#EXPOSE 9002
#
#ADD ./house_zzq/target/house_zzq-1.0-SNAPSHOT.war ./
#
